package com.karry.yl.service.food.impl;

import com.karry.commons.base.impl.SuperServiceImpl;
import com.karry.yl.dao.food.FoodMapper;
import com.karry.yl.domain.food.FoodModel;
import com.karry.yl.service.food.FoodService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;

/**
 *  餐谱的业务层接口实现类
 * @author Administrator
 */
@Service
public class FoodServiceImpl extends SuperServiceImpl<FoodMapper, FoodModel> implements FoodService {

    @Override
    @Transactional
    public void insertList(ArrayList<FoodModel> foodList) {
        for(FoodModel foodModel:foodList){
            baseMapper.insert(foodModel);
        }
    }
}
